package com.xyht.sca_s.student_manage_system.modules.carUseReturn.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.carUseReturn.entity.req.SmsCarUseReturnApplicationProcessReq;
import com.xyht.sca_s.student_manage_system.modules.carUseReturn.service.SmsCarUseReturnApplicationProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-08-02
 */
@SecretBody
@RestController
@RequestMapping("/smsCarUseReturnApplicationProcess")
public class SmsCarUseReturnApplicationProcessController {
    @Autowired
    private SmsCarUseReturnApplicationProcessService smsCarUseReturnApplicationProcessService;


    @ApiModelProperty(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updateProcess(@RequestBody SmsCarUseReturnApplicationProcessReq processVO) {
        return smsCarUseReturnApplicationProcessService.updateProcess(processVO);
    }

    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getProcessList() {
        return smsCarUseReturnApplicationProcessService.getProcessList();
    }
}

